rofiles: Fix --copyup when creating a new file
authorColin Walters <walters@verbum.org>
Fri, 5 Jan 2018 21:02:58 +0000 (16:02 -0500)
committerAtomic Bot <atomic-devel@projectatomic.io>
Mon, 8 Jan 2018 15:21:29 +0000 (15:21 +0000)
commit3b9304b5d76968c92378b708a76239fa5f08dcf9
treef834d847403498e64b5dbebab35ad99fcb06a3ef
parent46a841a062936f35cefaae5a4dbbb989859fc471
rofiles: Fix --copyup when creating a new file

This tripped up the `docbook-dtds` `%post` in my experiments
with doing rpm-ostree for buildroots.

I cloned and built [xfstests](https://git.kernel.org/pub/scm/fs/xfs/xfstests-dev.git)
but haven't yet investigated actually running it.

In the meantime let's do the obvious fix here; we need to distinguish
between "copyup enabled" and "actually did a copyup" in the open path
at least, since if we didn't do a copyup we don't need to re-open.

Closes: #1396
Approved by: jlebon
src/rofiles-fuse/main.c
tests/test-rofiles-fuse.sh